package ClasesBasicas;

import javax.swing.ImageIcon;
import javax.swing.JButton;

public class Casilla extends JButton{

	private int fila;
	private int columna;
	private ImageIcon imag;
	
	
	public Casilla(int fila,int columna,ImageIcon imag){
		
		this.fila=fila;
		this.columna=columna;
		this.imag=imag;
		this.setIcon(imag);
		
		
	}
	
	public Casilla(int fila,int columna){
		this.fila=fila;
		this.columna=columna;
	}
	
	
	public ImageIcon getImag() {
		return imag;
	}



	public void setImag(ImageIcon imag) {
		this.imag = imag;
		this.setIcon(imag);
	}



	public int getFila() {
		return fila;
	}



	public void setFila(int fila) {
		this.fila = fila;
	}



	public int getColumna() {
		return columna;
	}



	public void setColumna(int columna) {
		this.columna = columna;
	}



	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
